package com.ihr360.insurance.entity.snapshot;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Embeddable;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Stone.Shi
 * @description 社保/公积金数据快照
 * @date 2018-02-01 16:19:44.
 */
@Embeddable
public class BenefitSnapshot implements Serializable {

    private static final long serialVersionUID = 3169114884507641448L;
    /**
     * 申报基数
     */
    private Integer base;

    private Boolean calculatable;

    /**
     * 起始月份
     */
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date startOn;

    /**
     * 停缴月份
     */
    @JsonFormat(pattern = "yyyy-MM", timezone = "GMT+8")
    private Date endOn;

    public BenefitSnapshot() {
    }

    public BenefitSnapshot(Integer base, Date startOn, Date endOn, Boolean calculatable) {
        this.base = base;
        this.startOn = startOn;
        this.endOn = endOn;
        this.calculatable = calculatable;
    }

    public Integer getBase() {
        return base;
    }

    public void setBase(Integer base) {
        this.base = base;
    }

    public Date getStartOn() {
        return startOn;
    }

    public void setStartOn(Date startOn) {
        this.startOn = startOn;
    }

    public Date getEndOn() {
        return endOn;
    }

    public void setEndOn(Date endOn) {
        this.endOn = endOn;
    }

    public Boolean getCalculatable() {
        return calculatable;
    }

    public void setCalculatable(Boolean calculatable) {
        this.calculatable = calculatable;
    }
}
